#include "SendMsg.h"

void sendMsg(int peerfd, char *msg)
{
	train_t train;
	train.length = strlen(msg);
	strcpy(train.buff, msg);
	send(peerfd, &train, train.length + 4, MSG_WAITALL);
}
void sendArray(int peerfd, char *msg,int size)
{
	train_t train;
	train.length = size;
	strcpy(train.buff, msg);
	send(peerfd, &train, train.length + 4, MSG_WAITALL);
}
